﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WeSTrip.model
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IWeSTrip
    {
        // TODO: Add your service operations here
        [OperationContract]
        WeSTripEnqueueResult enqueue(Trip trip);
        [OperationContract]
        WeSTripDequeueResult dequeue();
        [OperationContract]
        bool CheckAvaiable(int tripId);
        [OperationContract]
        bool CheckExist(int tripId, int guestId);
        [OperationContract]
        bool CheckApprove(int tripId, int guestId);
        [OperationContract]
        bool CheckAlive(int tripId, int guestId);
        [OperationContract]
        TripResultStatus JoinTrip(int tripId, int guestId, string postedDate);
        [OperationContract]
        TripResultStatus CancelTrip(int tripId);
        [OperationContract]
        TripResultStatus ReJoinTrip(int tripId, int joinTripId);
        [OperationContract]
        TripResultStatus CancelJoinTrip(int jointTripId);
        [OperationContract]
        TripResultStatus SetApprove(int tripJoinId, int approve);
        [OperationContract]
        TripResultStatus SetStatusTrip(int tripId, int statusId);
        [OperationContract]
        TripResultStatus SetStatusJoinTrip(int joinTripId, int statusId);

    }


    // Use a data contract as illustrated in the sample below to add composite types to service operations.
}
